﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ad.aspx.cs" Inherits="ETongJin.YM.Web.TuiGuang.Ad"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>注册 - 推广中心</title>
    <link href="images/skin.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../../scripts/jquery-1.3.2.min.js"></script>

    <%if (false)
      {%>

    <script type="text/javascript" src="../../scripts/jquery-1.3.2-vsdoc.js"></script>

    <%}%>

    <script type="text/javascript">
    //PNG透明-->
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{ 
    var arVersion = navigator.appVersion.split("MSIE") 
    var version = parseFloat(arVersion[1]) 
    if ((version >= 5.5) && (document.body.filters)) 
    { 
       for(var j=0; j<document.images.length; j++) 
       { 
          var img = document.images[j] 
          var imgName = img.src.toUpperCase() 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
          { 
             var imgID = (img.id) ? "id='" + img.id + "' " : "" 
             var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle 
             if (img.align == "right") imgStyle = "float:right;" + imgStyle 
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
             var strNewHTML = "<span " + imgID + imgClass + imgTitle 
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML 
             j = j-1 
          } 
       } 
    }     
} 
window.attachEvent("onload", correctPNG); 
    </script>

    <style type="text/css">
        .style1
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 12px;
            line-height: 25px;
            color: #000000;
            width: 11%;
        }
    </style>
</head>
<body leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="images/mail_leftbg.gif">
                <img src="images/left-top-right.gif" width="17" height="29" />
            </td>
            <td width="935" height="29" valign="top" background="images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt" id="titlebt" runat="server">
                                添加广告</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="images/mail_rightbg.gif">
                <img src="images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="30" align="right" bgcolor="#f2f2f2" class="style1">
                                                    搜索类型：
                                                </td>
                                                <td width="3%" bgcolor="#f2f2f2">
                                                    &nbsp;
                                                </td>
                                                <td width="42%" height="30" bgcolor="#f2f2f2" class="left_txt2">
                                                    <asp:RadioButtonList ID="rblSearchType" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Selected="true" Text="行业搜索" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="聚合搜索" Value="1"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" class="style1">
                                                    广告位置：
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td height="30" class="left_txt2">
                                                    <asp:RadioButtonList ID="rblPosition" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Selected="true" Text="左边上面" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="左边下面" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="右边" Value="2"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" bgcolor="#f2f2f2" class="style1">
                                                    匹配的关键词：
                                                </td>
                                                <td bgcolor="#f2f2f2">
                                                    &nbsp;
                                                </td>
                                                <td height="30" bgcolor="#f2f2f2" class="left_txt2">
                                                    <asp:TextBox ID="txtKeyword" runat="server" Width="310px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtKeyword"
                                                        ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" class="style1">
                                                    您的出价：
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td height="30" class="left_txt2">
                                                    <asp:TextBox ID="txtPrice" runat="server" Width="68px">1</asp:TextBox>
                                                    积分<br />
                                                    （只能输入整数，出价越高，您的广告排名越靠前）
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" bgcolor="#f2f2f2" class="style1">
                                                    广告类型：
                                                </td>
                                                <td bgcolor="#f2f2f2">
                                                    &nbsp;
                                                </td>
                                                <td height="30" bgcolor="#f2f2f2" class="left_txt2">

                                                    <script type="text/javascript">
            function gx(obj)
            {
            switch(obj.id)
            {
               case "Radio0":
                    $("#gx0").show(); 
                    $("#gx1").show();
                    break;
               case "Radio1":
                    $("#gx0").hide(); 
                    $("#gx1").hide();
                    break ;
            }
            }
                                                    </script>

                                                    <input id="Radio0" type="radio" value="0" name="adtype" checked="checked" onclick="gx(this);" />
                                                    <label for="Radio0">
                                                        标准广告</label>
                                                    <input id="Radio1" type="radio" name="adtype" value="1" onclick="gx(this);" />
                                                    <label for="Radio1">
                                                        HTML代码</label>
                                                </td>
                                            </tr>
                                            <tr id="gx0">
                                                <td height="30" align="right" class="style1">
                                                    标题：
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td height="30" class="left_txt2">
                                                    <asp:TextBox ID="txtName" runat="server" Width="310px" MaxLength="35"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr id="gx1">
                                                <td height="30" align="right" bgcolor="#f2f2f2" class="style1">
                                                    广告链接页面：
                                                </td>
                                                <td bgcolor="#f2f2f2">
                                                    &nbsp;
                                                </td>
                                                <td height="30" bgcolor="#f2f2f2" class="left_txt2">
                                                    <asp:TextBox ID="txtUrl" runat="server" Width="310px" Text="http://"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtUrl"
                                                        ErrorMessage="不是有效的网页地址！" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" class="style1">
                                                    广告内容：
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td height="30" class="left_txt2">
                                                    <asp:TextBox ID="txtContents" runat="server" Height="60px" TextMode="MultiLine" Width="313px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContents"
                                                        ErrorMessage="广告内容不能为空!"></asp:RequiredFieldValidator>
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" align="right" bgcolor="#f2f2f2" class="style1">
                                                    广告状态：
                                                </td>
                                                <td bgcolor="#f2f2f2">
                                                    &nbsp;
                                                </td>
                                                <td height="30" bgcolor="#f2f2f2" class="left_txt2">
                                                    <asp:RadioButtonList ID="rblAdStatus" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="广告正常" Value="-2" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="广告暂停" Value="-3"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                    <asp:Label ID="lbIsMark" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="17" colspan="3" align="right">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="30" colspan="3" align="right" class="left_txt2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="50%" height="30" align="right">
                                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确认添加" />
                                    </td>
                                    <td width="6%" height="30" align="right">
                                        &nbsp;
                                    </td>
                                    <td width="44%" height="30">
                                        <input type="reset" value="取消操作" name="B12" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" colspan="3">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="images/mail_leftbg.gif">
                <img src="images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="images/buttom_bgs.gif">
                <img src="images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="images/mail_rightbg.gif">
                <img src="images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
